package 工厂模式.简单工厂模式;

public class Client {
    public static void main(String[] args) throws Exception {
        Human human = HumanFactory.createHuman(WhiteHuman.class);
        human.color();
        human.language();

        human = HumanFactory.createHuman(YellowHuman.class);
        human.color();
        human.language();

        // 白种人是白色皮肤
        //白种人大部分人说英语
        //黄种人是黄色皮肤
        //黄种人大部分人说汉语
    }
}
